WordPress.org

Forums

Ajaxize
[resolved] Ajaxized boxes returning "-1" after period of time (3 posts)

  1. joshuaiz
    Member
    Posted 1 year ago #

    I'm using Ajaxize with WP Super Cache to ajaxize some custom wp_query functions. After a few hours, the ajaxed divs just show a "-1" where the content should be.

    First, what does the "-1" mean?

    I'm using WP Super Cache so I'm wondering if this happens once super cached files are generated. This is with WP Super Cache 1.4. I'm not using the dynamic content function, relying on Ajaxize to keep the content dynamic.

    Second, how can I fix this?

    Third, is there a way to change the "-1" to a custom message? E.g.: "Nothing to display right now, please check again later."

    Thanks!

    https://wordpress.org/plugins/ajaxize/

  2. yoav.aner
    Member
    Plugin Author

    Posted 1 year ago #

    I think the -1 is a result of the csrf token becoming invalid after 12 or 24 hours or so. It's not a message that ajaxize returns, but rather something coming back from wordpress. If you make sure you don't cache for so long, this should resolve this problem.

  3. yoav.aner
    Member
    Plugin Author

    Posted 1 year ago #

    Closing this for now. Let me know if you have any further questions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ajaxize
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic