Funky Cache (beta testers wanted)
|
184 posts
|
Tuupola, I agree about the safe mode. Our server doesn’t use safe mode, so I wouldn’t conclude that this is the cause of the problem. I can provide you with access to our server info if you think that would help. |
|
184 posts
|
Hi Tuupola, I have made changes to Funky Cache to now get it to create multiple directory levels on the Windows platform, and it works great so far (still flashes a blank page when first viewed though, which may be something to do with me using a functions snippet at the top of each layout, because the html source will always show anything above it – still, this is a small gripe for local windows testing at present). I have to test it some more, but if it works as well as it does with more testing, I think we can look to having this work more reliably on the Linux platform too. Update: initial Linux testing seems to be working. Will confirm later. |
|
184 posts
|
I do have a question Tuupola, Is there a reason that when a page is changed, that all other pages need to be re-cached? I would have thought it would be possible to replace just that file, if it exists. This would mean that the editor would just need to ensure that they view pages as they edit them, to ensure it is pre-cached. Update: I just notcied that it does that when you actually edit ‘anything’ in the backend. I think I follow your logic for doing that … what if changing a snippet or layout affected numerous pages in one go etc etc … hmmm, interesting dilema. |
|
291 posts
|
Because when you edit a page it might affect more than just the page you edited (navigation, archive pages etc etc).
Why would you want to precache? It will be automatically cached next time someone access the page. |
|
184 posts
|
If a page was large or simply had alot of otherwise-dynamic content (we’re talking Frog snippets, functions etc) to draw in, I was thinking that is where using a cache solution would be most appropriate. Indeed in many (if not most) cases the first visitor would have to experience below-optimum performance, so the author of the content should have the honours I feel. I am just nitpicking though, Tuupola … I totally understand the potential dilemas as to why you have opted to do it the way you have. On a sidenote, the Windows and Linux tests have proved flawless for me (Windows first white-flash aside). If you’re interested in testing the changes at your end, I’d be happy to fix you up. |
|
291 posts
|
Yes of course the first request is slower than Funky Cached request. Cached request is static file. There is nothing faster than serving a static file. Of course the request which goes to Frog is slower. For example on one of my sites which contains many snippets and dynamically generated navigation cached request is takes around 0.3 seconds. After clearing the cache the first request takes around 0.7 seconds. All the following requests are 0.3 seconds again. Having 0.4 second difference in one request is not a problem for me. |
|
6 posts
|
Love this plugin. :) However, there seems to be an issue with the downloaded ZIP (v0.3.5) from the project page: the views folder and its contents seem to be missing. Same with the ZIP and TAR on GitHub. I had to manually recreate the missing files from the code posted on GitHub in order to get Funky Cache working. |
|
291 posts
|
Where did you download the ZIP from? I downloaded the latest from my website and it has views folder. I ask because I do not provide downloads as ZIP files. Instead they are GZ files. |
|
6 posts
|
Sorry, I meant the file from your website. Just to be sure, I re-downloaded the file from the link you just posted, but I still don’t get any views folder in it. Here’s a screenshot of the file contents: |
|
291 posts
|
I rechecked and I am 100% sure the views folder is in the tarball. Try opening the file with something else than WinRAR. |
|
6 posts
|
Hmm… you’re right. I opened the file with 7zip and sure enough, the views folder was there. Checked the same file with WinRAR and the folder was gone. Weird. |
|
26 posts
|
I’ve installed the funky cache plugin correctly, but when I enable the plugin, the tab doens’t show in the admin. I’ve have no issues with other plugins, just with funcky cache. What is going on? |
|
6 posts
|
Likely you’ve run into the same problem I did with some files being missing after extracting plugin. I suggest you re-download (just to be on the safe side) then open the downloaded TAR.GZ with 7-Zip and extract the file contents. Don’t use WinRAR or other archivers — that’s what caused the problem for me. If you don’t want to install a new program, then a portable version of 7-Zip is available. Re-upload the plugin files to your server. |
|
26 posts
|
7-Zip is all I use so thats not the problem. Any more idea’s? |
|
6 posts
|
Are all files present? The file and folder structure should be something like:
If they’re all in the file you download, then check to make sure they’ve been uploaded properly (file uploads sometimes go awry). Oh, I forgot to ask whether you’re using the latest stable version (0.9.5) of Frog CMS or the r367 dev version. I know Funky Cache works with the 0.9.5, but I don’t know about the dev. |
|
291 posts
|
Enable debugging in Frog so you can see if PHP generates any error messages. |
|
26 posts
|
Well i’ve come a bit closer to the answer. But now for my situation: funcky cache generated this .htacces:
When I use that .htaccess file there’s no tab in the admin. |
|
291 posts
|
Oops. I have word admin hardcoded in file funky_cache/index.php. Will fix. But if you are in a hurry just change the line 31 from:
to |
|
26 posts
|
I used your fix and it works fine now. Also the generated .htaccess needs to be looked at, I’ve allready edited funky cache to my needs: |
|
291 posts
|
I have not coded I18N support for for Jeditable yet. That is on TODO list. I would be interested in adding the Dutch translation to it. |
