• Resolved ronangelo

    (@ronangelo)


    @gatordog
    First of all, thanks for this excellent plugin. I’m always on the lookout for caching plugins that are light and manageable, and Gator Cache looks very promising.

    I’ve been testing the plugin since the first version but I could never get past the “parse error” that triggers after the 2 step installation.

    I’ve had to edit the options.php to get it to work. The error seems to be caused by using the short <? opening tag instead of <?php. I also read somewhere that placing brackets close to the closing php tag without any space, may also trigger the “unexpected end of file” error. There were also some </strong> tags without the opening <strong> tags and also some missing semi-colons.

    I think you have short_open_tag on your php.ini set to On which prevents you from seeing the parse error notice. This is usually Off on production servers.

    Here’s the options.php that’s working for me.
    edited options.php
    http://www.diffchecker.com/jm809h3a

    Though the plugin still has some things that are not working on my tests. Posting comments doesn’t refresh the post/page. I’ve examined the saveComment function but I’m afraid I’m not good enough to know what’s going on 🙂

    The .htaccess rules also break the site. I’ve read that “Alias” works on the main apache config file but not on .htaccess I only got it to work by replacing all instances of the Alias ( /gator_cache/ ) with the complete url that the alias is suppose to replace.

    Question: The timezone on the debug info on cached pages is set to +0000 but both my server and my WordPress install is set to use +0800. Is this normal/intentional? or maybe this is just on my end/isolated case.

    And lastly, a suggestion. A function to add custom urls on the Refresh Rules tab would be nice. Kind of similar to the exclude urls. Example of usage is when you have a bbpress forum added on a Page type via shortcode. Whenever a bbpress topic or reply is posted then that particular page url would also refresh.

    Thanks,
    Ron

    https://wordpress.org/plugins/gator-cache/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author GatorDog

    (@gatordog)

    Hi Ron,

    Thanks for the info. Yes, I’m running with shortags and did not notice there was one in the released code. Will get that pushed to a maintainence release later today.

    Will take a look at the comments. It hasn’t been as extensivley tested and the post refresh. Will take a look at that.

    Then as far as the refresh, what you’re saying is that you’d like to be able to add page(s) there that should refresh when bbpress updates. I’m thinking maybe adding a section below post types for this type of support.

    Thanks,

    Schuyler

    Plugin Author GatorDog

    (@gatordog)

    A couple things other things you mentions. The timezone I believe is just the gmt date. It may be more helpful to use local time there.

    Finally, if you do have only access to htaccess and not the apache config you may have to move the cache directory to the document root. If you do this manually, you’d also have to manually edit the gcconfig.ini.php file in the same directory so it will recognize the path. Thinking about making this an initial config option (location of the cache).

    Thread Starter ronangelo

    (@ronangelo)

    Then as far as the refresh, what you’re saying is that you’d like to be able to add page(s) there that should refresh when bbpress updates

    Yup, But I didn’t mean specifically when bbpress topics are added but like with the homepage refresh option, whenever a post is published. This includes all post types like post, page, topic, reply…etc, right?

    The timezone I believe is just the gmt date.

    I was just curious why it wasn’t using the timezone set on WordPress or my server.

    Finally, if you do have only access to htaccess and not the apache config you may have to move the cache directory to the document root.

    I do have access to both and it is working now on my end (without the Alias). I was just wondering why the plugin instructs on adding the rules on .htaccess but that causes status 500 errors since according to this posts, Alias is not allowed on .htaccess My log files also say the same thing:

    /home/mysite/public_html/.htaccess: Alias not allowed here

    Out of curiosity, why is the cache set outside of the document root ( /public_html/ )?

    Thanks,
    Ron

    Plugin Author GatorDog

    (@gatordog)

    For local testing, we work with the apache virtual host file, so it was an oversite to recommend putting an alias directive in the htaccess file.

    As far as not putting the cache in the doc root, this is because you don’t want public access to the cache. It’s not terribly insecure if it’s just a page cache, However, if object caching were added, that would pose a security risk.

    Thanks again for letting me know about the issues you came across. Will get the custom refresh feature you mentioned into the next release.

    Thread Starter ronangelo

    (@ronangelo)

    Great, I appreciate all the effort.

    Thanks,
    Ron

    Plugin Author GatorDog

    (@gatordog)

    The latest version, 1.41, should handle the feature you requested. It does have the option to set a specific post type since this would be the most common use case, eg refresh a url for a page with a shortcode for a certian post type. However, it can be set to “all”, which would cover all post types, or “bbPress” (which would cover topic, forum, reply).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Gator Cache parse error, questions & suggestions’ is closed to new replies.