Based on my last post’s Caching System Architecture for Mobile Apps with a WordPress REST back-end, let’s review in more details what is required to build a cache controller in Swift. The flow: At first run, the app calls all API endpoints requred to download data from the website: Use “Get All” endpoints for each… →
WordPress as Mobile App Back-end: Caching System Architecture
In a recent project we had to implement caching to allow an iOS mobile app to work offline, while keeping all contents up-to-date with the WordPress back-end through its REST JSON API. Since the dataset was limited and updated once or twice a week, we decided to create a caching workflow that would allow the… →
Supported Time Zones PHP, Swift, Java (Android)
We recently came across the challenge of specifying daylight saving affected time zones on a PHP based web back-end to be consumed by a mobile app on iOS and Android. We initially thought of dealing with this using the time difference in hour from either UTC or GMT, however that would not keep in account… →
A Git Setup for WordPress
As I mentioned in my previous posts about how to setup git deployment on a staging and a live server for a WordPress site, setting up a repository for your WordPress site is not a complex task. Let’s review the steps to do it. First of all, you need to realize that you don’t want… →
Search and Replace Localhost Domain in WordPress Database after Migration
Are you setting up a local development environment for an existing WordPress website, and imported a large database dump locally? You’ll need to replace your domain name with localhost in all its occurrences. Are you working locally on the design and development of a WordPress site and are now ready to migrate it to a… →
How to setup WordPress deployment from GitHub Repository to a Web Server
Setting up a repository for your WordPress site is easy. First of all, you need to realize that you don’t want to version anything but your custom code. WordPress and the plug-ins you are using are already being versioned by their respective authors, and with automatic updates, you don’t want to end up with your… →
Why you Should Have a Staging Server for your WordPress Site
If you work with WordPress on a small site, you probably started with a fully FTP (or SFTP) based workflow, editing your site directly on the server with a combination of an FTP client such as CyberDuck or Transmit and a cool code editor like Sublime Text, or perhaps you’re already using an integrated development… →
How to show PHP Error and review Error Logs from MAMP on your Mac (or PC)
If you are using MAMP for local development, you may be a bit frustrated as it won’t report errors on the webpage by default. In order to review errors, you need to open a file named php_error.log The file, on Mac, is located in Applications > MAMP > logs > php_error.log When you double click on… →