• Question: I have written some custom plugins, some of which act like basic webservices. I’d like to clear the page cache after some of these plugins execute successfully.

    Is there a hook, or other means of accessing the functions necessary to make this happen? Something like an API?

    Thanks so much!

Viewing 9 replies - 1 through 9 (of 9 total)
  • No, there’s no API right now, but you can do the following:

    require_once W3TC_DIR . '/lib/W3/PgCache.php';
    $w3_pgcache = & W3_PgCache::instance();
    $w3_pgcache->flush();
    Thread Starter pencilneck

    (@pencilneck)

    You are supremely helpful. Thank you for supporting the plugin so thoroughly.

    Thanks

    PLEASE FREDERICK after using the w3-total-cahce all my pictures are not showing ….. i tried amazon s3 but even with that i cant creat the bucket for the CDN settings …

    actually am a new bee and i prefer your plugin more than any other cache plugin… so please kindly to me throught the process of using it and getting my website working perfectly..

    i cant export media files . with the cdn settings too .. I REALY NEED HELP.

    http://www.jobs-ghana.com

    admin@jobs-ghana.com

    thank you in advance for taking your time to help me out.

    First of all, deactivate CDN until you first make sure your settings are working and export your media library etc. Check the FAQ tab of the plugin for set up instructions.

    please which other settings?

    i deactivated it the cdn but the images are still not showing… i dont know if this may be the cause of some of the cache plugins i initially tested with…

    i even deleted w3-total-cache but the images were not showing.. still so i have re-installed it again.

    *** TEACH ME HOW TO CREATE THE AMAZON S3 BUCKET ***

    i even deleted w3-total-cache but the images were not showing

    This scenario is impossible. W3TC does nothing with images if not installed or CDN disabled (and page cache emptied). The issue must be caused by minify settings you have set up, so disable minify as well and test one thing at a time. All sites are different and not everyone can just fully customize it in a few minutes (unfortunately); although most can.

    TEACH ME HOW TO CREATE THE AMAZON S3 BUCKET

    The 4th question the usage section of the FAQ in the plugin explains; go to this page on your domain: /wp-admin/options-general.php?page=w3-total-cache/w3-total-cache.php&tab=faq#q93

    mr fredrick good day,

    issues concerning the creation of the Amazon s3 BUCKET, i read through the faq which directs that i create an amazon s3 account of which i have created. below is details of the AMAZON S3 in the faq section.

    <<<<<<<<How do I configure Amazon Simple Storage Service (Amazon S3) or Amazon CloudFront as my CDN?

    First create an S3 account. Next, you need to obtain your “Access key” and “Secret key” from the “Access Credentials” section of the “Security Credentials” page of “My Account.” Make sure the status is “active.” Next, make sure that “Amazon Simple Storage Service (Amazon S3)” is the selected type of CDN on the General Settings tab (if not change the setting and save the changes). Now on the CDN Settings tab enter your “Access key,” “Secret key” and create a bucket. Click the “Test S3 Upload” button and make sure that the test is successful, if not check your settings and try again.

    Save your settings. Make sure that you export your media library, upload your wp-includes (WordPress core files) theme files, and custom files if you wish to host each of those with AWS. Unless you wish to use CloudFront, you’re almost done, skip to the next paragraph if you’re using CloudFront. Just go to the General Settings tab and click the checkbox and save the settings to enable CDN functionality and empty the cache for the changes to take effect.

    To use CloudFront, perform all of the steps above, except select the “Amazon CloudFront” CDN type in the CDN section of the General Settings tab. Proceed to the AWS Management Console and create a new distribution: select the S3 Bucket you created earlier as the “Origin,” enter a CNAME if you wish to add one to your DNS Zone. Make sure that “Distribution Status” is enabled and “State” is deployed. Now on CDN Settings tab of the plugin, copy the subdomain found in the AWS Management Console and enter the CNAME used for the distribution in the “CNAME” field.

    Now go to the General Settings tab and click the checkbox and save the settings to enable CDN functionality and empty the cache for the changes to take effect.>>>>>>>>>>>

    but the portion on the CDN Settings which requires the create bucket, when i leave it empty and click the create bucket after i have enter the “Access key,” “Secret key”

    …….it reports that bucket empty…..

    and if i use any other word too it ask that i should check my credential on Amazon s3…. this is why i would want you to guide me through…

    I TESTED SELF HOSTED ON THE CDN SETTINGS…..
    but i couldn’t export the media files …… and the same with the Amazon s3 too.

    i have other pages on http://www.Jobs-Ghana.com which is displaying product pictures from amazon and other affiliate programs perfectly BUT images from my server thus; { post picture & members – picture } are now not showing….

    i really which i could export my web pictures to s3 to try if that will work this time…

    Minify settings….

    with this too any time i go to the admin panel theres this caution messages asking me to empty cache and check the minify settings…

    actually talking about copying all css and js files into the minify setting i really dont know how to go by that too.. ..

    Finally if this still doesn’t sound well i can give you an admin access into my site for you to check exactly where the problem is for a one time solution thank you.

    First of all you were emailed before, but they all bounce (not delivered).

    and if i use any other word too it ask that i should check my credential on Amazon s3…. this is why i would want you to guide me through…

    There is nothing more that can be said, the process is trivial. Try creating a bucket with another tool like https://addons.mozilla.org/en-US/firefox/addon/3247 using Firefox and see if you can upload to that bucket after it exists. There are also some interesting reviews related to AWS: http://www.larre.com/2010/01/24/amazon-s3-and-cloudfront-with-wordpress-and-dreamhost/ or http://kovshenin.com/archives/w3-total-cache-with-amazon-s3-and-cloudfront/

    actually talking about copying all css and js files into the minify setting i really dont know how to go by that too..

    Have you seen the FAQ on this topic? It’s trivial copy and paste work.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: W3 Total Cache] API Available?’ is closed to new replies.