wintear
Forum Replies Created
-
We have found out the issue is cause by wpbackup plugin, some backup plugins is causing the drag
@sr293 Yes we do have WP-Optimize activated so you are saying this is cause by running the db optimizing?
@bcworkz For this 13sec test Im actually running on a local version xampp wordpress. but in our setup windows IIS version it too 2-3x the timing.
We are using Oasisworkflow plugin and think we manage to find that its calling the admin-ajax.php 3times for its workflow therefore it take 13s. Oasis support is telling us this is normal behaviour
This is a headache as we trying to drill down which code we can optimize/modify to improve or resolve slowness issue.
If really cannot we will need to request a reinstallation of WordPress running on Linux Apache services.Hi @sr293
Base on some source found on the forum we actually have this code below in the theme function.php.
We are integrating generate static with Oasis workflow, what we want to do is on the workflow complete which the hook they provided ‘owf_workflow_complete’ it will trigger to generate all the static files but somehow somewhere along the way this code no longer works? we are not sure what is the cause or is there a better solution?
I tried this by adding it into function.php add_filter( ‘ssp_single_auto_export’,’__return_true’ ); ran the workflow complete doesnt seems to generate tooadd_action(‘owf_workflow_complete’, ‘generate_static’);
function generate_static(){
$simply_static = Simply_Static\Plugin::instance();
$simply_static->run_static_export();
}Forum: Everything else WordPress
In reply to: Customize Preview PageActually I found the solutions, there is actually this code you can put in the theme header.php is_preview() function to add things to preview page.
- This reply was modified 3 years, 4 months ago by wintear.
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] Simply static hooksSorry we get it to work already please ignore previous message
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] Simply static hooksHi @patrickposner,
We tried out the function you provided.
We integrate it with OasisWorkflow plugin hook, upon completing a flow action we will trigger the run_static_export but looks like it doesn’t work. (theme function.php) and there is no error.
add_action( 'owf_workflow_complete','complete_workflow_export'); function complete_workflow_export () { // You want to set an option/transient after a publish action was fired and do the check within this function. $was_published = false; if ( $was_published ) { $simply_static = Simply_Static\Plugin::instance(); $simply_static->run_static_export(); } }Are you able to provide some guidance?
Thanks
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] Simply static hooksHey @patrickposner,
Great we can try it out.
Yes, in our function.php we did a trigger upon a hook as below.
add_action(‘owf_workflow_complete’, ‘run_static_export’);
hope this works too.
Thank you so much.
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] Simply static hooksHey @patrickposner,
Oh thanks, great help and good to know we are calling the wrong function (create_zip()) so the function is call run_static_export().
So in our function.php do we need to include the files?
e.g `require_once WP_PLUGIN_DIR . “file.php”;
use samepledata;
use \Modules\Settings;`could please share with us so that we can straight call the function without undefined or erros.
Forum: Fixing WordPress
In reply to: Custom menu plugin@bcworkz I plan to modify some of the things in the menu by
1. copy exact same menu editor page to my plugin
2. set a custom menu page link in admin page
3. hide “primary” menu from being show/selected, Only allow them to purely create menu only and not able to set to primary etcReason for this as we want to create an multi-level approval for anyone modified or editing the menu items as we cant find any plugins that call do that.
The closest plugin we can find is Oasis workflow plugin which currently met our requirement on multi-level approval for page content ONLY
- This reply was modified 3 years, 8 months ago by wintear.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Price Filter Not WorkingMy price didn’t show up too when I created a page using this woocommerce code [recent_products category=”jewel”]. want to get those product under new-arrival category or tag