Kimberly
Forum Replies Created
-
You’re welcome. Oops! Just spotted something. For future readers updating this manually (and so not dloading the zip file) I forgot to say in the instructions above (this WP forum doesn’t allow me to update my post) that you need to change the following line inside clearing-routines.inc.php from:
public static function clear_on_post_page_creations_deletions ($id = FALSE)to
public static function clear_on_post_page_creations_deletions ($id = FALSE, $isfuture=FALSE)Sorry! If you are/were using the zip file then you were already good to go. This is just a heads-up for those updating their files manually.
Forum: Plugins
In reply to: [Quick Cache (Speed Without Compromise)] Cache directory is enormousAll looks good there.
Curious, you mentioned that the “default” url form was in the cache file and not the permalink. To be clear you are saying you see something like: “http://www.mysite.com/?p=999” instead of “http://www.mysite.com/my-post”?
Are you noticing it at the bottom of the cache file where it says This Quick Cache file was built for or are you seeing this default form at the very top of the cache file? If its at the top then that is normal; at the bottom would be odd (assuming permalink customizations are being used).
Forum: Plugins
In reply to: [Quick Cache (Speed Without Compromise)] Cache directory is enormousFascinating. I wonder if your problem is like the other fellow. Curious:
1. Are ALL files not re-caching (remaining old)? Or just a selection of them?
2. If only select files then is there a pattern such as query strings in their url?
I would like to verify that loopback requests are working on your server.
Try adding these 2 test files to your server and running the LoopbackTest-Call.php file from your browser:
LoopbackTest-Call.php:
Note: Replace {YOUR SITE HOST NAME HERE} shown in the code below with your actual host domain (e.g:www .mysite.com).<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://{YOUR SITE HOST NAME HERE}/LoopbackTest-Reply.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $html = curl_exec($ch); echo "Loopback Response: ".$html; ?>LoopbackTest-Reply.php:
<?php echo "SUCCESS!!"; ?>If successful you should see “Loopback Response: SUCCESS!!“. It’s important that you call the LoopbackTest-Call.php file from your browser and NOT the LoopbackTest-Reply.php file. Once we know loopback requests are working on your server then we can continue to pinpoint what is going on.
Because this plugin uses MD5 hashing to construct the filenames for caching i would imagine you would need to pass a variable to let the static function know if its the query string variation of the page so that it can build the proper md5 filename for it. That variable’s contents should be the entire query string so qc can then append prior to hashing. At least that is what i would do.
Forum: Plugins
In reply to: [Quick Cache (Speed Without Compromise)] Cache directory is enormoussounds like its specialized cron it adds to wp-cron list isn’t working on your end. When i check my list i see a quick cache garbage clean up that is run either one per hour or once per day (cant remember which).
Curious…are those old pages continuing to use those old cachce files even though when you check the bottom of the page the expiration date indeed shows it has expired?
Hi Jeff…my apologies for not taking the time to properly answer. I wasn’t entirely sure if anyone would bother to read it so i never actually looked into my fixes but instead just posted what i recalled from memory.
Any who, i pulled up the changes and to save time just modify your hooks.inc.php and clearing-routines.inc.php files to the ones in this zip: http://speedy.sh/VQRv4/QuickCache-FixSchedule.zip
However, to preemptively alleviate concerns of future readers who will inevitably freak out because of not knowing what mischief voodoo I am doing in that zip file here are the manual steps:
hooks.inc.php:
(located under: /quick-cache/includes/)1. Look for the line:
add_action ("save_post", "c_ws_plugin__qcache_clearing_routines::clear_on_post_page_creations_deletions");2. Replace it with the following lines:
add_action ("publish_post", "c_ws_plugin__qcache_clearing_routines::clear_on_post_page_creations_deletions"); add_action ("publish_page", "c_ws_plugin__qcache_clearing_routines::clear_on_post_page_creations_deletions"); add_action ("publish_future_post", "c_ws_plugin__qcache_clearing_routines::for_future_posts");Note: I didn’t have to remove the save_post line (#1 above) but did so anyway because the save_post action gets triggered even in cases when you simply jump to the admin Post > Add New page without actually creating a post. Seems quite silly since it now can potentially require your Front Page to be cleared and re-cached for no reason — more CPU time == Bad. Logically the action to trigger Quick Cache should happen when the new post is actually published (or edited). Hence, why i replaced/removed the save_post line above. You can leave the line alone (dont have to remove/replace it). However, if you do keep it then you don’t need the publish_post and publish_page lines above (shown in #2) since save_post encapsulates them both.
clearing-routines.inc.php:
(located under: /quick-cache/includes/classes/)1. Add the following new function inside the class c_ws_plugin__qcache_clearing_routines (after line 18)
public static function for_future_posts($id = FALSE) { c_ws_plugin__qcache_clearing_routines::clear_on_post_page_creations_deletions($id, TRUE); }2. Look for the line:
if (is_blog_admin () && in_array ($pagenow, ($pages = array ("edit.php", "post.php", "post-new.php"))))3. Replace it with the following line:
if ($isfuture || (is_blog_admin () && in_array ($pagenow, ($pages = array ("edit.php", "post.php", "post-new.php")))))An update…i spoke to a few people here in support for a similar plugin and they pointed me to sites such as this who make use of XML Sitemaps with the alternate keyword on and how they faired. Apparently this plugin completely forgot to consider this since i was told that it only works when it is off. The webmaster told me s/he resolves the issue by making a custom tool that runs XML Sitemaps separately. Uhh. I had assumed briefly maybe i was doing something wrong or my server was the issue. So indeed this is a bug in tihs plugin. 🙁
Ok i solved it…Had a look in his code…
For those having the same problem all you need to do is go to the plugins “quick-cache/includes/” folder and open the “hooks.inc.php” file and add this line:
add_action ("publish_future_post", "c_ws_plugin__qcache_clearing_routines::clear_on_post_page_creations_deletions");Forum: Plugins
In reply to: [WP Minify] [Plugin: WP Minify] pretty URL ProblemI wish i remember my coding. I use to know the answer to this. Granted my plugin is patched by me to resolve all my problems and works with WP3.4.2. Because so many people are having problems i may muster up the energy to just zip my forked version for those here to use.
There are a few others here who’ve made their own fork of this plugin too which u can read in this forum and contact. They might then get back to you sooner with the zip than me.
Forum: Plugins
In reply to: [WP Minify] [Plugin: WP Minify] Combining JavaScript filesYup there is a silly bug in this plugin. There is a fix mentioned here in this forum.
Forum: Plugins
In reply to: [WP Minify] [Plugin: WP Minify] No files get minifiedThis is a known bug which a few of us addressed and fixed. Check out one of the other comments to find a step-by-step fix.
Forum: Plugins
In reply to: [WP Minify] [Plugin: WP Minify] Bad Request on minified filei once got a similar error and noticed this plugin was merging the base path with the file path in a way that resulted in two forward-slashes in the file path being sent to filemtime() creating the “stat failed” response. I now check and strip out the extraneous slash before the call.
In your case i notice you have “wordpress” repeated twice in the path which probably indicates you have a base path pointing inside “wordpress” but your file path is also using “/wordpress”, hence: “/wordpress/wordpress”
Forum: Plugins
In reply to: [WP Minify] [Plugin: WP Minify] Removing ?m= from the cache urlI had to write my own patch that got rid of it. Its been a while but i think that # is also used in determining the final minify name (md5 hash) which is probably not a good idea since every time it does a new minify on the same files you will get a new name which will break tihngs like cache plugins if the times arent in sync (missing files). And then there is the issue with those who crawled your page will find your minify js/css file(s) are now gone and will potentially flag the site as suspicious since these files keep disappearing every xx hours/days.
There are a few of us here who have made our own forked versions of this plugin and one day we might just merge them.
I havent worked on this plugin for several months now so i forget all the things i’ve added or patched but it works very well in every way now.
@chadrew: Yes!
And consider it a mandatory thing to do when you get this plugin. There are other bugs we’ve discovered that may affect you which we addressed and fixed so feel free to read other comments for them if interested. But the one fix we all agree everyone should do is the one outlined in here. The other fixes may not be relevant to your site.
And btw, this is by far the stupidest feature (adding new lines to prevent html from getting too long) i’ve ever seen.
Forum: Plugins
In reply to: [WP Minify] [Plugin: WP Minify] Force https not workingI just did a quick hunt through the author’s code and I could give you a quick fix line of code you can add to resolve this problem but i am not sure if you are even bothering with this plugin anymore.