Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Omit from cache Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
AIWEB
Groupie
Groupie
Avatar

Joined: 19 October 2010
Location: United States
Online Status: Offline
Posts: 54
Posted: 31 July 2011 at 1:42pm | IP Logged Quote AIWEB

Is there any way to omit the defines.js file from caching?
Back to Top View AIWEB's Profile Search for other posts by AIWEB
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 01 August 2011 at 5:56am | IP Logged Quote Igor

If you look into webmail.php file you'll find the following code there:

Code:
<?php if (USE_JS_GZIP && IS_SUPPORT_GZIP) { ?>
<script type="text/javascript" src="cache-loader.php?v=<?php echo JS_VERS; ?>&t=def"></script>
.......
<?php } else { ?>
<script type="text/javascript" src="js/common/defines.js"></script>
.......


and cache-loader.php file contains instructions on what should be cached in this "def" case:

Code:
case 'def':
     $type = $_GET['t'];
     $files = array(
          'js/common/defines.js',
          'js/common/common-helpers.js',
.......


Now, if you'd like to avoid caching defines.js file, that's going to take 2 steps:

1) make sure the <script> tag which includes 'js/common/defines.js' is provided outside of that if construct;

2) remove any its reference from within cache-loader.php file.

Hope this helps!

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
AIWEB
Groupie
Groupie
Avatar

Joined: 19 October 2010
Location: United States
Online Status: Offline
Posts: 54
Posted: 02 August 2011 at 12:44pm | IP Logged Quote AIWEB

Awesome - thanks a ton!
Back to Top View AIWEB's Profile Search for other posts by AIWEB
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide