Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to use JCache to cache assets
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kavith Thiranga  
View profile  
 More options Aug 15 2012, 12:39 pm
From: kavith Thiranga <rc404m...@gmail.com>
Date: Wed, 15 Aug 2012 09:39:56 -0700 (PDT)
Local: Wed, Aug 15 2012 12:39 pm
Subject: How to use JCache to cache assets

Hi all,

I am developing a system plugin that will enable compression of javascripts
and css files. Can anyone suggest me a way to cache compressed (minified)
js/css files using the Joomla's built in cache API. My plugin will be
called upon onBeforeCompileHead event and it will catch all the js/css
files registered with the document and will compress files and replace the
url of file to point the compressed file.

Since the files are going through the compression mechanism each and every
time page is loaded, I need to cache the already compressed files and re
compress only if the js/css file is modified or a new js/css file is added.

Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rouven Weßling  
View profile  
 More options Aug 16 2012, 1:29 am
From: Rouven Weßling <m...@rouvenwessling.de>
Date: Thu, 16 Aug 2012 07:29:08 +0200
Local: Thurs, Aug 16 2012 1:29 am
Subject: Re: [jcms] How to use JCache to cache assets

I don't think our cache system is suitable for that. I'd place the generated assets in the filesystem and - if at all - would only use JCache for some meta information

Best regards
Rouven

On 15.08.2012, at 18:39, kavith Thiranga <rc404m...@gmail.com> wrote:

  smime.p7s
6K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »