Giter Site home page Giter Site logo

pods-framework / pods-ajax-views Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 2.0 1.37 MB

Utilize AJAX cache generation and loading for Pods Views

Home Page: https://wordpress.org/plugins/pods-ajax-views/

License: GNU General Public License v2.0

PHP 90.01% JavaScript 9.99%
ajax caching pods pods-addon wordpress-plugin

pods-ajax-views's People

Contributors

sc0ttkclark avatar shelob9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

leepeterson

pods-ajax-views's Issues

$data -> view_data not occurring

There are actually a few issues occurring here at once. Thought I had it sorted out, but just noticed issues remain.

Upon activation of the plugin, the podsviews table never gets created yet the underlying pods_view function and other associated functions continue to visually function. But PODS_AJAX_VIEW_DEBUG indicates no caching actually occurs.

Manually creating the table throws server-side errors saying view_data cannot be NULL.

Allowing view_data to be NULL allows the plugin to visually function once more, yet DEBUG continues to indicate NOT CACHED. Viewing the podsviews database table confirms that the rest of the data does get stored, rows being created for every time it runs.

I originally assumed that because $data is optional, thus allowing NULL, that changing it to allow NULL would make the plugin work. But I've run out of time today to continue figuring out why no data is actually being stored. My guess is there's a slight shortcoming between the existing pods_view function and pods_ajax_view, the former not passing data to the latter.

I'd love to see this get resolved considering the data being rendered in my current project is 3rd-party GTFS API data and calls to the vendor's endpoints take no less than 1200ms each time (DNS and other considerations accounted for). And I'd love to continue keeping everything within the Pods ecosystem!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.